﻿function SourceDownloadProgressChanged(s,e) {
    var bartext = s.findname("bartext");
     var bar = s.findname("bar");
     if (bartext != null || bar != null) {
         var value = Math.round(e.progress * 100)
         bartext.Text = value + "%";
         var newWidth = 2.8 * value;
         bar.Width = Math.round(newWidth);
     }
 }